package com.gitee.jmash.websocket.model;

import com.gitee.jmash.common.security.JmashPrincipal;

/**
 * 订阅和取消订阅消息
 */
public class SubscribeMessage extends Message {

  protected String token;

  protected JmashPrincipal principal;

  public String getToken() {
    return token;
  }

  public void setToken(String token) {
    this.token = token;
  }

  public JmashPrincipal getPrincipal() {
    return principal;
  }

  public void setPrincipal(JmashPrincipal principal) {
    this.principal = principal;
  }

  @Override
  public String toString() {
    return "SubscribeMessage [token=" + token + ", principal=" + principal + ", msgType=" + msgType
        + ", channelId=" + channelId + ", message=" + message + "]";
  }

}
